<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form 
action="POST" name="myform"> <table border="1" 
bgcolor="#63639C"> <tr> <td align="center" colspan="2"><script 
language="JavaScript"><!-- function Morgcal() { form = document.myform 
LoanAmount= form.LoanAmount.value DownPayment= "0" AnnualInterestRate 
= form.InterestRate.value/100 Years= form.NumberOfYears.value MonthRate=AnnualInterestRate/12 
NumPayments=Years*12 Prin=LoanAmount-DownPayment MonthPayment=Math.floor((Prin*MonthRate)/(1-Math.pow((1+MonthRate),(-1*NumPayments)))*100)/100 
form.NumberOfPayments.value=NumPayments form.MonthlyPayment.value=MonthPayment 
} // --></script> <font color="#FFFFFF" size="2" 
face="arial narrow"><b>Repayment Mortgage Calculator</b> 
<br> Enter Your Details &amp; Click the Calculate Button</font></td> 
</tr> <tr> <td><table border="0" cellpadding="2"> 
<tr> <td align="right"><font color="#FFFFFF" 
size="2" face="arial narrow">Loan Amount $ </font></td> 
<td><font color="#FFFFFF" size="2" face="arial 
narrow"><input type="text" size="10" name="LoanAmount" 
value="80000" onblur="Morgcal()" onchange="Morgcal()"><br> 
</font></td> </tr> <tr> <td align="right"><font 
color="#FFFFFF" size="2" face="arial narrow">Annual 
Interest Rate </font></td> <td><font color="#FFFFFF" 
size="2" face="arial narrow"><input type="text" 
size="3" name="InterestRate" value="6.0" onblur="Morgcal()" 
onchange="Morgcal()"> % <br> </font></td> </tr> 
<tr> <td align="right"><font color="#FFFFFF" 
size="2" face="arial narrow">Term of Loan </font></td> 
<td><font color="#FFFFFF" size="2" face="arial 
narrow"><input type="text" size="3" name="NumberOfYears" 
value="20" onblur="Morgcal()" onchange="Morgcal()"> 
Years<br> </font></td> <td><font color="#FFFFFF" 
size="2" face="arial narrow"><input type="button" 
name="morgcal" value="Calculate" language="JavaScript" 
onclick="Morgcal()"> </font></td> </tr> <tr> 
<td colspan="3"><font color="#FFFFFF"></font></td> 
</tr> </table> </td> </tr> <tr> <td><table 
border="0" cellpadding="2"> <tr> <td align="right"><font 
color="#FFFFFF" size="2" face="arial narrow"> 
Number of Payments </font></td> <td><font color="#FFFFFF" 
size="2" face="arial narrow"><input type="text" 
size="7" name="NumberOfPayments"><br> </font></td> 
</tr> <tr> <td align="right"><font color="#FFFFFF" 
size="2" face="arial narrow">Monthly Payment $ </font></td> 
<td><font color="#FFFFFF" size="2" face="arial 
narrow"><input type="text" size="7" name="MonthlyPayment"><br> 
</font></td> </tr> <tr> <td align="center" 
colspan="2">&nbsp;</td> </tr> </table> </td> 
</tr> </table> </form></body>
</html>
